import pytest

@pytest.fixture(autouse=True, scope="function")
def f0():
    print("---fixture : function-前（全局）")
    yield
    print("---fixture : function-后（全局）")

@pytest.fixture(autouse=True, scope="function")
def f():
    print("---fixture : function-前")
    yield
    print("---fixture : function-后")




@pytest.fixture(autouse=True, scope="class")
def f2():
    print("---fixture : class-前")
    yield
    print("---fixture : class-后")


@pytest.fixture(autouse=True, scope="module")
def f3():
    print("---fixture : module-前")
    yield
    print("---fixture : module-后")


@pytest.fixture(autouse=True, scope="package")
def f4():
    print("---fixture : package-前")
    yield
    print("---fixture : package-后")


@pytest.fixture(autouse=True, scope="session")
def f5():
    print("---fixture : session-前")
    yield
    print("---fixture : session-后")